#ifndef MOZHU_SHOPPING_SYSTEM
#define MOZHU_SHOPPING_SYSTEM
#include <string>
#include <vector>
#include "../UI/UI.h"
#include "../log/log.h"
#include "../time/time.h"
#include "../user_manage_system/usermanage.h"
#include "../order_management_system/ordermanage.h"
#include "../item_management_system/itemManage.h"

class shop
{
public:
	void loaddatabase(std::string userdata,std::string itemdata,std::string logdata);
	void unloaddatabase();
	void mainpage();
	void orderpage();
	void inventorypage();
	void iteminfopage(item* ptr);
	void selectitembyname();
	void selectitembynumber();
	void custommanagepage();
	void showorderlist(user* ptr);
	void orderhistorypage();
	void orderstasticspage();
	void systemlogpage();
	void adddatapage(user* ptr);
	void showorderinfo(order* ptr);
private:
	usermanager users;
	ordermanagesystem orders;
	itemManageSyatem items;
};

#endif